package com.example.demo.service;

import com.example.demo.dao.TimeDao;
import com.example.demo.entity.TimeEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TimeService {
    @Autowired
    private TimeDao timeDao;
    public List<TimeEntity> selectAllTime(){
        return timeDao.selectAllTime();
    }
    public TimeEntity selectByTimeid(int timeid){
        return timeDao.selectByTimeid(timeid);
    }
}
